﻿#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked(bool checked)//这里的函数应该放到构造函数里面的
{
    connect(ui->pushButton,SIGNAL(clicked(checked)),this,SLOT(close()));
}
